package com.threadpool;

public class TestThreadPool {
	public static void main(String[] args) {
		// 初始化线程池个数
		ThreadPool<Runnable> threadPool = new DefaultThreadPool<Runnable>(2);
		
		// 提交任务
		threadPool.execute(new MyJob(3));
		threadPool.execute(new MyJob(4));
		threadPool.execute(new MyJob(5));
		// 销毁线程池
		threadPool.shutdown();

	}
}
